package com.xc.dao;

import com.xc.pojo.UserCashDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserCashDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserCashDetail record);

    int insertSelective(UserCashDetail record);

    UserCashDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserCashDetail record);

    int updateByPrimaryKey(UserCashDetail record);


    List findUserCashDetailList(@Param("uid") Integer uid,
                                @Param("positionId") Integer positionId);


    List listByAgent(@Param("userId") Integer userId
            ,@Param("userName") String userName
            ,@Param("searchId") Integer searchId
            ,@Param("positionId") Integer positionId);

    List listByAdmin(@Param("userId") Integer userId
            ,@Param("userName") String userName
            ,@Param("agentId") Integer agentId
            ,@Param("positionId") Integer positionId);


}